//
// Created by Administrator on 2023/6/3.
//
#pragma once
#ifndef DATA_SCIENCE_H
#define DATA_SCIENCE_H

#include <QVector>
#include <QMap>
#include <cmath>
#include <QtAlgorithms>
#include <QtAlgorithms>


class Data_Science
{
public:
    Data_Science();


    Data_Science(QVector<double> * qvec_data);


    ~Data_Science();


    double Mode(QVector<double> * qvec_data);


    double Mean(QVector<double> * qvec_data);


    double Var(QVector<double> * qvec_data);


    double Std(QVector<double> * qvec_data);


    double Vec_Max(QVector<double> * qvec_data);


    double Vec_Mini(QVector<double> * qvec_data);


    double Vec_Range(QVector<double> * qvec_data);


    double Vec_Median(QVector<double> * qvec_data);




public:
    double vec_mode;
    double vec_mean;
    double vec_var;
    double vec_std;
    double vec_median;


    double vec_max;
    double vec_mini;
    double vec_range;






private:



    QVector<double>* qvec_data;



};



#endif //DATA_SCIENCE_H
